using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CincinnatiLibraryRenew
{
    public partial class LoginForm : Form
    {
        public User user = new User();
        public LoginForm()
        {
            InitializeComponent();
        }

        private void btnGo_Click(object sender, EventArgs e)
        {
            user.name = "";
            user.pin = txtPIN.Text;
            user.userid = txtCardNumber.Text;
            if(user.pin.Length>0 && user.userid.Length>0)
                this.DialogResult = DialogResult.OK;
        }
    }
}